package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type ExpertAttention struct {
	Id         int   `json:"id" gorm:"primaryKey;autoIncrement"`
	UserId     int   `json:"user_id"`     //关注者,
	ExpertId   int   `json:"expert_id"`   //被关注者
	CreateTime int64 `json:"create_time"` //建立时间

}

func (ExpertAttention) TableName() string {
	return fmt.Sprintf("%sexpert_attention", models.Prefix)
}
